package com.mtao.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.groups.Default;
import lombok.*;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysUser {
    private Integer id;
    @NotEmpty
    private String username;
    @NotEmpty
    @JsonIgnore
    private String password;
    @NotEmpty
    private String nickName;
    @NotEmpty
    private String email;
    @JsonFormat(pattern = "YYYY-MM-DD HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "YYYY-MM-DD HH:mm:ss")
    private LocalDateTime updateTime;
    private Boolean enabled;
    private String img;

    public interface Add extends Default {

    }
    public interface Update extends Default{

    }

}
